package ooday02test;

import javax.swing.plaf.synth.SynthUI;

public class PersonTest {
    public static void main(String[] args) {
        //
        Student stu=new Student("张三",18,"北京", "计算机", "2018");
        stu.eat();
        stu.sleep();
        stu.sayHi();
        stu.study();

        //
        Teacher tea=new Teacher("李四", 30, "北京", "教授");
        tea.eat();
        tea.sleep();
        tea.sayHi();
        tea.teach();

        //
        Doctor doc=new Doctor("王五", 40, "北京", "主任医师");
        doc.eat();
        doc.sleep();
        doc.sayHi();
        doc.cut();
    }
}
